package lekcja4.reszta.zad4;

import java.util.StringTokenizer;

/**
 * Author: michal
 */
public class Zad4 {
    public static void main(String[] args){
        String napis = "Michał;Karol;Jakub;Wojtek;Artur";
        StringTokenizer tokenizer = new StringTokenizer(napis, ";");

        while(tokenizer.hasMoreTokens()){
            System.out.println(tokenizer.nextToken());
        }
    }
}
